{extend name='admin@public/content'}

{block name="content"}
<form autocomplete="off" onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='form-horizontal layui-form padding-top-20'>

    <div class="form-group">
        <label class="col-sm-2 control-label">商家名称</label>
        <div class='col-sm-8'>
            <input value='{$vo.store_name|default=""}' class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">所属行业</label>
        <div class='col-sm-8'>
            <input value="{:widget('Mkg/getMcateName', ['id' => $vo.store_cate])}" class="layui-input">
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">法人姓名</label>
        <div class='col-sm-8'>
            <input value='{$vo.store_f_name|default=""}'  class="layui-input">
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">联系电话</label>
        <div class='col-sm-8'>
            <input autofocus value='{$vo.store_mobile|default=""}' class="layui-input">
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">座机号码</label>
        <div class='col-sm-8'>
            <input autofocus value='{$vo.store_phone|default="暂无号码"}' class="layui-input">
        </div>
    </div>


    <div class="form-group">
        <label class="col-sm-2 control-label">商家地址</label>
        <div class='col-sm-8'>
            <input autofocus name="store_address" value='{$vo.store_address|default=""}' required="required" title="商家地址" placeholder="商家地址" class="layui-input">
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label label-required">身份证正反面</label>
        <div class='col-sm-8'>
            <table class="layui-table background-item margin-none" lay-size="sm" lay-skin="nob">
                <thead>
                <tr>
                    <td>图片</td>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td class="text-top">
                        <input type="hidden" name="store_card_image" value="{$vo.store_card_image|default=''}">
                        <script>$('[name=store_card_image]').uploadMultipleImage()</script>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label label-required">商家环境图片</label>
        <div class='col-sm-8'>
            <table class="layui-table background-item margin-none" lay-size="sm" lay-skin="nob">
                <thead>
                <tr>
                    <td>图片</td>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td class="text-top">
                        <input type="hidden" name="store_images" value="{$vo.store_images|default=''}">
                        <script>$('[name=store_images]').uploadMultipleImage()</script>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="hr-line-dashed"></div>

    <div class="col-sm-7 col-sm-offset-2">
        <div class="layui-form-item text-center">
            {if !empty($vo.id)}<input type="hidden" name="id" value="{$vo.id}">{/if}

            {if $vo.status eq -1}<button class="layui-btn" type="button" data-update="{$vo.id}" data-field='status' data-value='0' data-action='{:url("$classuri/resume")}?id={$vo.id}'>同意入驻</button>{/if}
            {if $vo.status eq -1}<button class="layui-btn layui-btn-danger" type="button" data-update="{$vo.id}" data-field='status' data-value='1' data-action='{:url("$classuri/forbid")}?id={$vo.id}'>拒绝入驻</button>{/if}
            {if $vo.status neq -1}<button class="layui-btn" type="button">已处理</button>{/if}
            <button class="layui-btn layui-btn-danger" type='button' onclick="window.history.back()">返回 </button>
        </div>
    </div>

    <script>window.form.render();</script>

    <!--<script>-->
        <!--/*! 实例富文本编辑器  */-->
        <!--require(['ckeditor'], function () {-->
            <!--window.createEditor('[name="content"]', {height: 500});-->
        <!--});-->
    <!--</script>-->
</form>
{/block}